<div class="common-container" id="order">
  <h3>填写订单信息</h3>
  <hr/>

  <div class="address" ng-controller="addressController">
    <h4>收货人信息</h4>

    <div class="addressList">
      {{curId}}
      <div class="radio" ng-repeat="address in addressList">
        <input type="radio" name="address" ng-click="setAddress(address)" ng-checked="address.default"/>
        <span class="info">
          {{address.name}}
          {{address.district.province.name}}{{address.district.city.name}}{{address.district.region.name}}
          {{address.location}}
          {{address.phone}}
        </span>
        <span class="operation">
          <span class="edit" ng-click="editAddress(address.id)">编辑</span>
          <span class="cancel" ng-click="delete(address.id)">删除</span>
        </span>
      </div>

      <!--
      <div class="radio">

        <input type="radio" name="address"/>
        <span class="info">Rocky 广东省广州市天河区华南师范大学西三宿舍 13245678910</span>
        <span class="operation">

          <span class="edit">编辑</span>
          <span class="cancel">删除</span>
        </span>
      </div>
      -->
    </div>


    <button class="btn btn-primary" ng-click="createAddress()">使用新地址</button>
  </div><!--address-->
  <hr/>

  <div class="pay">
    <h4>收货方式</h4>
    <p>暂只支持货到付款</p>
  </div>
  <hr/>


  <div class="product">
    <h4>商品清单</h4>
    <product-list products="products"></product-list>
  </div><!--product-->

  <div class="total">
    <span class="total-label">总计</span>
    <span class="price">￥{{total}}</span>
  </div>

  <div class="settlement">
    <button class="btn btn-primary btn-lg" ng-click="submitOrder()">提交订单</button>
  </div>
</div>